package com.itheima.stock.mapper;

import com.itheima.stock.common.domain.InnerMarketDomain;
import com.itheima.stock.pojo.StockMarketIndexInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Entity com.itheima.stock.pojo.StockMarketIndexInfo
 */
@Mapper
public interface StockMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockMarketIndexInfo record);

    int insertSelective(StockMarketIndexInfo record);

    StockMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockMarketIndexInfo record);

    int updateByPrimaryKey(StockMarketIndexInfo record);
     List<InnerMarketDomain> getMarketInfo(@Param("marketIds") List<String> marketIds,@Param("timePoint") Date timePoint);

     List<Map> getStockTradeVol(@Param("inner") List<String> inner, @Param("openDate") Date openDate, @Param("date") Date date);

    /**
     * 批量保存大盘数据
     * @param list
     */
    void insertBatch(@Param("stockMarketlist") List<StockMarketIndexInfo> list);
}




